package lab02.Test10;

/**
 * Created by Administrator on 2017/10/21.
 */
public class People {
    //属性：姓名，性别，年龄，身份证号
    String name;
    String sex;
    int age;
    String IDnumber;
    //方法：获取姓名，获取性别，获取年龄，获取身份证号
    String getName(){
        return name;}
    public void setName(String name){
        this.name=name;}
    String getSex(String 男){
        return  sex;  }
    public void setSex(String sex){
        this.sex=sex;}
    String getIDnumber(){
        return IDnumber; }
    public void setIDnumber(String IDnumber){
        this.IDnumber=IDnumber;}
    int getAge(){
        return  age;
    }
    public void setAge(int age){
        this.age=age;}
    public People() {
        super();
    }
    public People( String name, String sex, int age,
                   String IDnumber) {
        super();
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.IDnumber=IDnumber;
    }

    public  void speackHello()
    {
        System.out.println("Hello");
    }
    public  void name()
    {
        System.out.println("名字是：");
    }
    public  void sex()
    {
        System.out.println("性别是：");
    }
    public  void age()
    {
        System.out.println("年龄是：");
    }
    public  void IDnumber()
    {
        System.out.println("身份证号是：");
    }
}